package io.github.luons.mediator.core.enums;

import io.github.luons.mediator.core.spi.result.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * operator
 *
 * @author : luons
 */
@Getter
@AllArgsConstructor
public enum Operator implements ResultCode {

    /**
     * Operator
     */
    EQ(1, "EQ"),
    NE(2, "NE"),
    LT(3, "LT"),
    LE(4, "LE"),
    GT(5, "GT"),
    GE(6, "GE"),
    IN(7, "IN"),
    NOT_IN(8, "NOT IN"),
    // EXIST(9, "EXIST"),
    // NOT_EXIST(10, "NOT EXIST"),
    LIKE(11, "LIKE"),
    ISNULL(12, "IS NULL"),
    IS_NOTNULL(13, "IS NOT NULL"),

    ;

    /**
     * code
     */
    private final Integer code;
    /**
     * message
     */
    private final String name;

}
